]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Add minimal continuous integration
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 28 Jan 2019 02:34:48 +0000 (03:34 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 28 Jan 2019 17:29:35 +0000 (17:29 +0000)
Building gnome-shell is tricky due to the tight coupling with mutter,
but until we figure out the best way forward, we can at least perform
some basic syntax checking on the javascript bits.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/367

.gitlab-ci.yml [new file with mode: 0644]

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..07c9144
--- /dev/null
@@ -0,0 +1,18 @@
+stages:
+ - source_check
+
+variables:
+    JS_LOG: "js-report.txt"
+
+js_check:
+    image: registry.fedoraproject.org/fedora:latest
+    stage: source_check
+    before_script:
+        - dnf install -y findutils mozjs60-devel
+    script:
+        - find js -name '*.js' -exec js60 -c -s '{}' ';' 2>&1 | tee $JS_LOG
+        - (! grep -q . $JS_LOG)
+    artifacts:
+        paths:
+            - ${JS_LOG}
+        when: on_failure